package com.microservice.salmon.db.entities;

import java.util.Date;
import javax.persistence.*;

@Table(name = "t_crons")
public class CronConfig {
    @Id
    private Integer id;

    @Column(name = "cron_name")
    private String cronName;

    @Column(name = "cron_code")
    private String cronCode;

    @Column(name = "is_enable")
    private Byte isEnable;

    @Column(name = "is_running")
    private Byte isRunning;

    @Column(name = "cron_url")
    private String cronUrl;

    @Column(name = "cron_desc")
    private String cronDesc;

    @Column(name = "cron_cycle")
    private Byte cronCycle;

    @Column(name = "cron_day")
    private Byte cronDay;

    @Column(name = "cron_week")
    private Byte cronWeek;

    @Column(name = "cron_hour")
    private Byte cronHour;

    @Column(name = "cron_minute")
    private String cronMinute;

    @Column(name = "run_time")
    private String runTime;

    @Column(name = "next_time")
    private String nextTime;

    @Column(name = "is_run_success")
    private Byte isRunSuccess;

    private String author;

    @Column(name = "author_url")
    private String authorUrl;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "cron_json")
    private String cronJson;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return cron_name
     */
    public String getCronName() {
        return cronName;
    }

    /**
     * @param cronName
     */
    public void setCronName(String cronName) {
        this.cronName = cronName;
    }

    /**
     * @return cron_code
     */
    public String getCronCode() {
        return cronCode;
    }

    /**
     * @param cronCode
     */
    public void setCronCode(String cronCode) {
        this.cronCode = cronCode;
    }

    /**
     * @return is_enable
     */
    public Byte getIsEnable() {
        return isEnable;
    }

    /**
     * @param isEnable
     */
    public void setIsEnable(Byte isEnable) {
        this.isEnable = isEnable;
    }

    /**
     * @return is_running
     */
    public Byte getIsRunning() {
        return isRunning;
    }

    /**
     * @param isRunning
     */
    public void setIsRunning(Byte isRunning) {
        this.isRunning = isRunning;
    }

    /**
     * @return cron_url
     */
    public String getCronUrl() {
        return cronUrl;
    }

    /**
     * @param cronUrl
     */
    public void setCronUrl(String cronUrl) {
        this.cronUrl = cronUrl;
    }

    /**
     * @return cron_desc
     */
    public String getCronDesc() {
        return cronDesc;
    }

    /**
     * @param cronDesc
     */
    public void setCronDesc(String cronDesc) {
        this.cronDesc = cronDesc;
    }

    /**
     * @return cron_cycle
     */
    public Byte getCronCycle() {
        return cronCycle;
    }

    /**
     * @param cronCycle
     */
    public void setCronCycle(Byte cronCycle) {
        this.cronCycle = cronCycle;
    }

    /**
     * @return cron_day
     */
    public Byte getCronDay() {
        return cronDay;
    }

    /**
     * @param cronDay
     */
    public void setCronDay(Byte cronDay) {
        this.cronDay = cronDay;
    }

    /**
     * @return cron_week
     */
    public Byte getCronWeek() {
        return cronWeek;
    }

    /**
     * @param cronWeek
     */
    public void setCronWeek(Byte cronWeek) {
        this.cronWeek = cronWeek;
    }

    /**
     * @return cron_hour
     */
    public Byte getCronHour() {
        return cronHour;
    }

    /**
     * @param cronHour
     */
    public void setCronHour(Byte cronHour) {
        this.cronHour = cronHour;
    }

    /**
     * @return cron_minute
     */
    public String getCronMinute() {
        return cronMinute;
    }

    /**
     * @param cronMinute
     */
    public void setCronMinute(String cronMinute) {
        this.cronMinute = cronMinute;
    }

    /**
     * @return run_time
     */
    public String getRunTime() {
        return runTime;
    }

    /**
     * @param runTime
     */
    public void setRunTime(String runTime) {
        this.runTime = runTime;
    }

    /**
     * @return next_time
     */
    public String getNextTime() {
        return nextTime;
    }

    /**
     * @param nextTime
     */
    public void setNextTime(String nextTime) {
        this.nextTime = nextTime;
    }

    /**
     * @return is_run_success
     */
    public Byte getIsRunSuccess() {
        return isRunSuccess;
    }

    /**
     * @param isRunSuccess
     */
    public void setIsRunSuccess(Byte isRunSuccess) {
        this.isRunSuccess = isRunSuccess;
    }

    /**
     * @return author
     */
    public String getAuthor() {
        return author;
    }

    /**
     * @param author
     */
    public void setAuthor(String author) {
        this.author = author;
    }

    /**
     * @return author_url
     */
    public String getAuthorUrl() {
        return authorUrl;
    }

    /**
     * @param authorUrl
     */
    public void setAuthorUrl(String authorUrl) {
        this.authorUrl = authorUrl;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取更新时间
     *
     * @return update_time - 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * @return cron_json
     */
    public String getCronJson() {
        return cronJson;
    }

    /**
     * @param cronJson
     */
    public void setCronJson(String cronJson) {
        this.cronJson = cronJson;
    }
}